<template>
  <div id="app">
    <ul>
      <li>
        <router-link to="/markdown">Markdown编辑器</router-link>
      </li>
      <li>
        <router-link to="/github">Github提交</router-link>
      </li>
      <li>
        <router-link to="/wangge">网格组件</router-link>
      </li>
      <li>
        <router-link to="/tree">树形视图</router-link>
      </li>
      <li>
        <router-link to="/svg">SVG 图表</router-link>
      </li>
      <li>
        <router-link to="/model">模式组件</router-link>
      </li>
      <li>
        <router-link to="/header">具有伸缩性的 Header</router-link>
      </li>
      <li>
        <router-link to="/iframe">内嵌组件</router-link>
      </li>
      <li>
        <router-link to="/deepstreamhub">实时 deepstreamHub</router-link>
      </li>
      <li>
        <router-link to="/firebase">Firebase + 验证</router-link>
      </li>
      <li>
        <router-link to="/todomvc">TodoMVC</router-link>
      </li>
      <li>
        <router-link to="/hackernews">HackerNews 克隆</router-link>
      </li>
    </ul>
    <div style="padding:10px 40px;">
      <transition name="fade" mode="out-in">
        <router-view/>
      </transition>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'app'
  }

</script>
<style lang="scss" scoped>
 li {
    display: inline-block;
    margin-right: 15px;
  }

  .fade-enter-active,
  .fade-leave-active {
    transition: all 0.3s;
  }

  .fade-enter,
  .fade-leave-to {
    opacity: 0;
  }
</style>